class CreateHeros < ActiveRecord::Migration
  def self.up
    create_table :heros do |t|
      t.integer :user_id
      t.string :name
      t.text :history
      t.integer :strength, :default => 0
      t.integer :intelligence, :default => 0
      t.integer :constitution, :default => 0
      t.integer :life, :default => 0
      t.boolean :sex # true = male, false = female
      t.integer :map_id

      t.timestamps
    end
  end

  def self.down
    drop_table :heros
  end
end
